﻿@*
 * ---------------------------------------------------
 * 代码自动生成  请不要手动修改代码
 * 作者: MTQ 
 * 日期： 2016/1/6 21:36:20 
 * ---------------------------------------------------
 *@
@model IEnumerable<MTQ.Model.B_AboutUs>  

@{     
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutManager.cshtml";    
}
<script type="text/javascript">



    $(function () {
        //新建按钮事件   
        $("input[name='btnCreate']").click(function () {
            $("#B_AboutUsCreate .modal-title").html("Create");
            $("#B_AboutUsCreate .modal-content").html("");
            $("#B_AboutUsCreate .modal-content").load("/Admin/B_AboutUs/Create?time=" + new Date().getMilliseconds(), function () {
                $("#B_AboutUsCreate").modal("toggle");
            });
            

        });


        $("[name='table_B_AboutUs']").bootstrapTable({}).on('click-cell.bs.table', function (e, field, value, row, $element) {
            if (field == "selectColumn") {
                return;
            }
            var guid = row["B_AboutUsId"];
            var url = "/Admin/B_AboutUs/Edit?primarykey=" + guid + "&times=" + new Date().getMilliseconds();
            $("#B_AboutUsCreate .modal-title").html("Edit");
            $("#B_AboutUsCreate .modal-content").html("");
          
            $("#B_AboutUsCreate .modal-content").load(url, function () {
                $("#B_AboutUsCreate").modal("toggle");
            });
            
           

        });

        $("input[name='btnDisable']").click(function () {
            selectedRowChangeAvailable("B_AboutUsId", "/Admin/B_AboutUs/ActivateB_AboutUs", $("table[name='table_B_AboutUs']"), "N");
        });


        $("input[name='btnEnable']").click(function () {
            selectedRowChangeAvailable("B_AboutUsId", "/Admin/B_AboutUs/ActivateB_AboutUs", $("table[name='table_B_AboutUs']"), "Y");
        });



    });
</script>
<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
    <div class="span12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <ul class="breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="javascript:void(0)">B_AboutUs</a>
                <i class="icon-angle-right"></i>
            </li>
            <li><a href="javascript:void(0)">Index</a></li>
            <li class="pull-right no-text-shadow">
                <div id="dashboard-report-range" class="dashboard-date-range tooltips no-tooltip-on-touch-device responsive" data-tablet="" data-desktop="tooltips" data-placement="top" data-original-title="Change dashboard date range">
                    <i class="icon-calendar"></i>
                    <span></span>
                    <i class="icon-angle-down"></i>
                </div>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<div class="container-fluid">
    <!-- END PAGE HEADER-->
    <div class="row-fluid">
        <table data-toggle="table" name="table_B_AboutUs" data-cache="False" data-sort-order="asc"
            data-sort-name="B_AboutUsId"
            data-url="/B_AboutUs/Search"
            data-side-pagination="server"
            data-pagination="true"
            data-page-list="[5, 10, 20, 50, 100, 200]"
            data-page-size="10"
            data-page-number="1"
            data-smart-display="true" data-click-to-select="false">

            <thead>
                <tr>
                    <th data-field="selectColumn" data-checkbox="true" data-formatter="actionFormatter" data-events="actionEvents"></th>

                    <th data-field="B_AboutUsName" data-align="center" data-sortable="true" data-halign="center">@MTQ.BLL.B_LocalService.GetWord("B_AboutUsName", @ViewBag.CultureInfoName)</th>

                    <th data-field="B_AboutUsContent" data-align="center" data-sortable="true" data-halign="center">@MTQ.BLL.B_LocalService.GetWord("B_AboutUsContent", @ViewBag.CultureInfoName)</th>
                    <th data-field="B_AboutUsSort" data-align="center" data-sortable="true" data-halign="center">@MTQ.BLL.B_LocalService.GetWord("B_AboutUsSort", @ViewBag.CultureInfoName)</th>
                    <th data-field="B_AboutUsAvailable" data-align="center" data-sortable="true" data-halign="center">@MTQ.BLL.B_LocalService.GetWord("B_AboutUsAvailable", @ViewBag.CultureInfoName)</th>
                </tr>
            </thead>
        </table>
    </div>

    <div class="managebtnlist  row-fluid ">
        <input type="button" name="btnCreate" class="btn green-meadow" value="新建" />
        <input type="button" name="btnDisable" class="btn green-meadow" value="停用" />
        <input type="button" name="btnEnable" class="btn green-meadow" value="启用" />
    </div>
</div>
<!-- END PAGE HEADER-->
<div id="B_AboutUsCreate" class="modal fade" data-width="700" data-backdrop="static" data-keyboard="false">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">Create</h4>
        </div>
        <div class="modal-body">
        </div>
    </div>
</div>







